package com.ma.controller;

import com.ma.service.CategoryService;
import com.ma.service.impl.CategoryServiceImpl;
import com.ma.vo.CategoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    private CategoryService categoryService;

    @RequestMapping("/test")
    public String test(){
        List<CategoryVo> category = categoryService.getCategory();
        return category.toString();
    }
}
